{"ast":null,"code":"import { resetComponent } from '../../style';\nconst genFilterStyle = token => {\n  const {\n    componentCls,\n    antCls,\n    iconCls,\n    tableFilterDropdownWidth,\n    tableFilterDropdownSearchWidth,\n    paddingXXS,\n    paddingXS,\n    colorText,\n    lineWidth,\n    lineType,\n    tableBorderColor,\n    tableHeaderIconColor,\n    fontSizeSM,\n    tablePaddingHorizontal,\n    borderRadius,\n    motionDurationSlow,\n    colorTextDescription,\n    colorPrimary,\n    tableHeaderFilterActiveBg,\n    colorTextDisabled,\n    tableFilterDropdownBg,\n    tableFilterDropdownHeight,\n    controlItemBgHover,\n    controlItemBgActive,\n    boxShadowSecondary\n  } = token;\n  const dropdownPrefixCls = `${antCls}-dropdown`;\n  const tableFilterDropdownPrefixCls = `${componentCls}-filter-dropdown`;\n  const treePrefixCls = `${antCls}-tree`;\n  const tableBorder = `${lineWidth}px ${lineType} ${tableBorderColor}`;\n  return [{\n    [`${componentCls}-wrapper`]: {\n      [`${componentCls}-filter-column`]: {\n        display: 'flex',\n        justifyContent: 'space-between'\n      },\n      [`${componentCls}-filter-trigger`]: {\n        position: 'relative',\n        display: 'flex',\n        alignItems: 'center',\n        marginBlock: -paddingXXS,\n        marginInline: `${paddingXXS}px ${-tablePaddingHorizontal / 2}px`,\n        padding: `0 ${paddingXXS}px`,\n        color: tableHeaderIconColor,\n        fontSize: fontSizeSM,\n        borderRadius,\n        cursor: 'pointer',\n        transition: `all ${motionDurationSlow}`,\n        '&:hover': {\n          color: colorTextDescription,\n          background: tableHeaderFilterActiveBg\n        },\n        '&.active': {\n          color: colorPrimary\n        }\n      }\n    }\n  }, {\n    // Dropdown\n    [`${antCls}-dropdown`]: {\n      [tableFilterDropdownPrefixCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n        minWidth: tableFilterDropdownWidth,\n        backgroundColor: tableFilterDropdownBg,\n        borderRadius,\n        boxShadow: boxShadowSecondary,\n        // Reset menu\n        [`${dropdownPrefixCls}-menu`]: {\n          // https://github.com/ant-design/ant-design/issues/4916\n          // https://github.com/ant-design/ant-design/issues/19542\n          maxHeight: tableFilterDropdownHeight,\n          overflowX: 'hidden',\n          border: 0,\n          boxShadow: 'none',\n          '&:empty::after': {\n            display: 'block',\n            padding: `${paddingXS}px 0`,\n            color: colorTextDisabled,\n            fontSize: fontSizeSM,\n            textAlign: 'center',\n            content: '\"Not Found\"'\n          }\n        },\n        [`${tableFilterDropdownPrefixCls}-tree`]: {\n          paddingBlock: `${paddingXS}px 0`,\n          paddingInline: paddingXS,\n          [treePrefixCls]: {\n            padding: 0\n          },\n          [`${treePrefixCls}-treenode ${treePrefixCls}-node-content-wrapper:hover`]: {\n            backgroundColor: controlItemBgHover\n          },\n          [`${treePrefixCls}-treenode-checkbox-checked ${treePrefixCls}-node-content-wrapper`]: {\n            '&, &:hover': {\n              backgroundColor: controlItemBgActive\n            }\n          }\n        },\n        [`${tableFilterDropdownPrefixCls}-search`]: {\n          padding: paddingXS,\n          borderBottom: tableBorder,\n          '&-input': {\n            input: {\n              minWidth: tableFilterDropdownSearchWidth\n            },\n            [iconCls]: {\n              color: colorTextDisabled\n            }\n          }\n        },\n        [`${tableFilterDropdownPrefixCls}-checkall`]: {\n          width: '100%',\n          marginBottom: paddingXXS,\n          marginInlineStart: paddingXXS\n        },\n        // Operation\n        [`${tableFilterDropdownPrefixCls}-btns`]: {\n          display: 'flex',\n          justifyContent: 'space-between',\n          padding: `${paddingXS - lineWidth}px ${paddingXS}px`,\n          overflow: 'hidden',\n          backgroundColor: 'inherit',\n          borderTop: tableBorder\n        }\n      })\n    }\n  },\n  // Dropdown Menu & SubMenu\n  {\n    // submenu of table filter dropdown\n    [`${antCls}-dropdown ${tableFilterDropdownPrefixCls}, ${tableFilterDropdownPrefixCls}-submenu`]: {\n      // Checkbox\n      [`${antCls}-checkbox-wrapper + span`]: {\n        paddingInlineStart: paddingXS,\n        color: colorText\n      },\n      [`> ul`]: {\n        maxHeight: 'calc(100vh - 130px)',\n        overflowX: 'hidden',\n        overflowY: 'auto'\n      }\n    }\n  }];\n};\nexport default genFilterStyle;","map":{"version":3,"names":["resetComponent","genFilterStyle","token","componentCls","antCls","iconCls","tableFilterDropdownWidth","tableFilterDropdownSearchWidth","paddingXXS","paddingXS","colorText","lineWidth","lineType","tableBorderColor","tableHeaderIconColor","fontSizeSM","tablePaddingHorizontal","borderRadius","motionDurationSlow","colorTextDescription","colorPrimary","tableHeaderFilterActiveBg","colorTextDisabled","tableFilterDropdownBg","tableFilterDropdownHeight","controlItemBgHover","controlItemBgActive","boxShadowSecondary","dropdownPrefixCls","tableFilterDropdownPrefixCls","treePrefixCls","tableBorder","display","justifyContent","position","alignItems","marginBlock","marginInline","padding","color","fontSize","cursor","transition","background","Object","assign","minWidth","backgroundColor","boxShadow","maxHeight","overflowX","border","textAlign","content","paddingBlock","paddingInline","borderBottom","input","width","marginBottom","marginInlineStart","overflow","borderTop","paddingInlineStart","overflowY"],"sources":["/data/messenger.client/node_modules/antd/es/table/style/filter.js"],"sourcesContent":["import { resetComponent } from '../../style';\nconst genFilterStyle = token => {\n  const {\n    componentCls,\n    antCls,\n    iconCls,\n    tableFilterDropdownWidth,\n    tableFilterDropdownSearchWidth,\n    paddingXXS,\n    paddingXS,\n    colorText,\n    lineWidth,\n    lineType,\n    tableBorderColor,\n    tableHeaderIconColor,\n    fontSizeSM,\n    tablePaddingHorizontal,\n    borderRadius,\n    motionDurationSlow,\n    colorTextDescription,\n    colorPrimary,\n    tableHeaderFilterActiveBg,\n    colorTextDisabled,\n    tableFilterDropdownBg,\n    tableFilterDropdownHeight,\n    controlItemBgHover,\n    controlItemBgActive,\n    boxShadowSecondary\n  } = token;\n  const dropdownPrefixCls = `${antCls}-dropdown`;\n  const tableFilterDropdownPrefixCls = `${componentCls}-filter-dropdown`;\n  const treePrefixCls = `${antCls}-tree`;\n  const tableBorder = `${lineWidth}px ${lineType} ${tableBorderColor}`;\n  return [{\n    [`${componentCls}-wrapper`]: {\n      [`${componentCls}-filter-column`]: {\n        display: 'flex',\n        justifyContent: 'space-between'\n      },\n      [`${componentCls}-filter-trigger`]: {\n        position: 'relative',\n        display: 'flex',\n        alignItems: 'center',\n        marginBlock: -paddingXXS,\n        marginInline: `${paddingXXS}px ${-tablePaddingHorizontal / 2}px`,\n        padding: `0 ${paddingXXS}px`,\n        color: tableHeaderIconColor,\n        fontSize: fontSizeSM,\n        borderRadius,\n        cursor: 'pointer',\n        transition: `all ${motionDurationSlow}`,\n        '&:hover': {\n          color: colorTextDescription,\n          background: tableHeaderFilterActiveBg\n        },\n        '&.active': {\n          color: colorPrimary\n        }\n      }\n    }\n  }, {\n    // Dropdown\n    [`${antCls}-dropdown`]: {\n      [tableFilterDropdownPrefixCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n        minWidth: tableFilterDropdownWidth,\n        backgroundColor: tableFilterDropdownBg,\n        borderRadius,\n        boxShadow: boxShadowSecondary,\n        // Reset menu\n        [`${dropdownPrefixCls}-menu`]: {\n          // https://github.com/ant-design/ant-design/issues/4916\n          // https://github.com/ant-design/ant-design/issues/19542\n          maxHeight: tableFilterDropdownHeight,\n          overflowX: 'hidden',\n          border: 0,\n          boxShadow: 'none',\n          '&:empty::after': {\n            display: 'block',\n            padding: `${paddingXS}px 0`,\n            color: colorTextDisabled,\n            fontSize: fontSizeSM,\n            textAlign: 'center',\n            content: '\"Not Found\"'\n          }\n        },\n        [`${tableFilterDropdownPrefixCls}-tree`]: {\n          paddingBlock: `${paddingXS}px 0`,\n          paddingInline: paddingXS,\n          [treePrefixCls]: {\n            padding: 0\n          },\n          [`${treePrefixCls}-treenode ${treePrefixCls}-node-content-wrapper:hover`]: {\n            backgroundColor: controlItemBgHover\n          },\n          [`${treePrefixCls}-treenode-checkbox-checked ${treePrefixCls}-node-content-wrapper`]: {\n            '&, &:hover': {\n              backgroundColor: controlItemBgActive\n            }\n          }\n        },\n        [`${tableFilterDropdownPrefixCls}-search`]: {\n          padding: paddingXS,\n          borderBottom: tableBorder,\n          '&-input': {\n            input: {\n              minWidth: tableFilterDropdownSearchWidth\n            },\n            [iconCls]: {\n              color: colorTextDisabled\n            }\n          }\n        },\n        [`${tableFilterDropdownPrefixCls}-checkall`]: {\n          width: '100%',\n          marginBottom: paddingXXS,\n          marginInlineStart: paddingXXS\n        },\n        // Operation\n        [`${tableFilterDropdownPrefixCls}-btns`]: {\n          display: 'flex',\n          justifyContent: 'space-between',\n          padding: `${paddingXS - lineWidth}px ${paddingXS}px`,\n          overflow: 'hidden',\n          backgroundColor: 'inherit',\n          borderTop: tableBorder\n        }\n      })\n    }\n  },\n  // Dropdown Menu & SubMenu\n  {\n    // submenu of table filter dropdown\n    [`${antCls}-dropdown ${tableFilterDropdownPrefixCls}, ${tableFilterDropdownPrefixCls}-submenu`]: {\n      // Checkbox\n      [`${antCls}-checkbox-wrapper + span`]: {\n        paddingInlineStart: paddingXS,\n        color: colorText\n      },\n      [`> ul`]: {\n        maxHeight: 'calc(100vh - 130px)',\n        overflowX: 'hidden',\n        overflowY: 'auto'\n      }\n    }\n  }];\n};\nexport default genFilterStyle;"],"mappings":"AAAA,SAASA,cAAc,QAAQ,aAAa;AAC5C,MAAMC,cAAc,GAAGC,KAAK,IAAI;EAC9B,MAAM;IACJC,YAAY;IACZC,MAAM;IACNC,OAAO;IACPC,wBAAwB;IACxBC,8BAA8B;IAC9BC,UAAU;IACVC,SAAS;IACTC,SAAS;IACTC,SAAS;IACTC,QAAQ;IACRC,gBAAgB;IAChBC,oBAAoB;IACpBC,UAAU;IACVC,sBAAsB;IACtBC,YAAY;IACZC,kBAAkB;IAClBC,oBAAoB;IACpBC,YAAY;IACZC,yBAAyB;IACzBC,iBAAiB;IACjBC,qBAAqB;IACrBC,yBAAyB;IACzBC,kBAAkB;IAClBC,mBAAmB;IACnBC;EACF,CAAC,GAAGzB,KAAK;EACT,MAAM0B,iBAAiB,GAAI,GAAExB,MAAO,WAAU;EAC9C,MAAMyB,4BAA4B,GAAI,GAAE1B,YAAa,kBAAiB;EACtE,MAAM2B,aAAa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